/* Health Psychology Associates */

@import url('https://fonts.googleapis.com/css?family=Open+Sans');

* {
  /*border: 1px solid lightgray;*/
  font-family: 'Open Sans', sans-serif;
  word-spacing: 0.1em;
  letter-spacing: 0.1em;
  color: rgb(0, 0, 0);
}

html {
  -moz-osx-font-smoothing: grayscale; /* Firefox bolds things it shouldn't without this */
  -webkit-font-smoothing: antialiased; /* Chrome doesn't display bold font-weight without this */
  font-smoothing: antialiased;
  font-weight: 400;
}

body {
  visibility: hidden;
  min-width: 420px;
  background-color: white;
}

.show-body {
  visibility: visible;
}

a {
  text-decoration: none;  
}

/* needed for mobile */
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; 
}

/* needed for mobile */
@-ms-viewport{
  width: device-width;
}

/******** Navigation ********/

#navigation {
  position: fixed;
  z-index: 999;
  width: 100%;
  min-width: 320px;
  background-color: rgb(250, 250, 250);
  box-shadow: 0 2px 2px gray;
  -webkit-box-shadow: 0 2px 2px gray;
  -moz-box-shadow: 0 2px 2px gray;
}

#navigation #mobile-phone,
#navigation #menu-btn {
  display: none;
}

#navigation .logo {
  position: absolute;
  width: 25%;
  min-width: 162px;
  max-width: 324px;
  margin: 8px;
}

#navigation .small-logo {
  width: unset;
  min-width: unset;
  max-width: unset;
  height: 100%;
}

#navigation #options {
  float: right;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  box-sizing: border-box;
  width: 73%;
  padding: 8px;
  padding-left: 0;
}

#navigation #options a,
#navigation #options div {
  display: inline-block;
  line-height: 30px;
  border-bottom: 2px solid transparent;
  font-weight: bold;
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -ms-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;   
}

#navigation #options a {
  margin: 0 12px;
}

#navigation #options a:hover {
  border-bottom: 2px solid #B37C57;
}

#navigation #options .current {
  border-bottom: 2px solid #B37C57;
}

@media screen and (max-width: 586px) { 
  #navigation .logo {
    width: 102.42px;
    min-width: unset;
    max-width: unset;
  }
  #navigation #menu-btn {
    display: block;
    float: right;
    height: 48px;
    margin: 8px;
  }
  #navigation #menu-btn:hover {
    cursor: pointer;
  }
  #navigation #menu-btn a img {
    display: block;
    height: 100%;
  }  
  #navigation #options {
    display: none;
    width: 100%;
    padding: 8px;
    text-align: center;
  }
}

/******** Header ********/

#header {
  position: relative;
  z-index: 0;
  width: 100%;
  margin-bottom: 5px;
}

#header img:nth-child(1) {
  object-fit: cover;
  width: 100%;
  max-height: 500px;
  margin-bottom: -5px;
}

#header .small-header {
  max-height: 250px !important;
}

#header h1 {
  position: absolute;
  top: 0;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 32px;
  text-align: center;
  font-size: 56px;
  background-color: rgba(250, 250, 250, .5);
  border-radius: 50%;
  box-shadow: 0 0 42px rgb(250, 250, 250);
  -webkit-box-shadow: 0 0 42px rgb(250, 250, 250);
  -moz-box-shadow: 0 0 42px rgb(250, 250, 250);
}

#close-event {
  position: absolute;
  left: 2px;
  top: 2px;
  z-index: 99999;
  height: 14px;
  line-height: 14px;
  width: 14px;
  padding: 8px;
  text-align: center;
  border-radius: 50%;
}

#close-event:hover {
  cursor: pointer;
  background-color: lightgray;
}

#running-event {
  position: absolute;
  top: 0;
  z-index: 999;
  padding: 16px;
  text-align: center;
  background-color: white;
  border-bottom: 2px solid gray;
}

#header #running-event a {
  text-decoration: underline;
}

/******** Content ********/

.content, .line {
  position: relative;
  top: -5px;
  overflow: auto;
  width: 1000px;
  margin: 0 auto;
  padding: 48px 32px;
}

.line {
  padding: 0;
  border-bottom: 2px solid gray;
}

.content {
  text-align: center;
}

.special {
  padding-bottom: 0;
}

.content h1 {
  margin: 0;
  color: #B37C57;
}

.content h2 {
  margin: 0;
  color: #3C455C;
}

.page-description {
  margin: 0;
}

@media screen and (max-width: 1080px) {
  .content, .line {
    width: 775px;
  }
}

@media screen and (max-width: 854px) {
  .content, .line {
    width: calc(100% - 64px);
  }
}

@media screen and (max-width: 750px) {
  .content, .line {
    width: 500px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 582px) { 
  .content, .line {
    width: calc(100% - 64px);
  }
}

/**** Index Page ****/

#intro h1 {
  line-height: 56px;
  font-size: 48px;
  font-weight: 100;
  font-family: 'Poppins', sans-serif;
}

#intro p {
  margin-bottom: 0;
}

.index .boxes {
  overflow: hidden;
  border: 2px solid gray;
}

.index .boxes .left, .index .boxes .right {
  float: left;
  box-sizing: border-box;
  height: 300px;
  width: 50%;
}

.index  .boxes .left {
  padding: 24px;
  border-right: 2px solid gray;
}

.index .boxes h2 {
  font-size: 32px;
  color: #3C455C;
}

.index .boxes .title {
  border: 0;
  padding: 0;
}

.index .boxes .title:hover {
  background-color: transparent;
  box-shadow: 0 0 0 transparent;
  -webkit-box-shadow: 0 0 0 transparent;
  -moz-box-shadow: 0 0 0 transparent;  
}

.index .boxes img {
  object-fit: cover;
  width: 100%;
  margin-bottom: -5px;
}

.index .boxes .image {
  height: 100%;
  padding: 0;
  border: 0;
}

.index .boxes a {
  display: inline-block;
  margin: 0 auto;
  padding: 8px;
  border: 2px solid #B37C57;
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -ms-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;    
}

.index .boxes a:hover {
  background-color: #DDE2E3;
  box-shadow: 0 0 4px gray;
  -webkit-box-shadow: 0 0 4px gray;
  -moz-box-shadow: 0 0 4px gray;   
}

.mobile-line {
  display: none;
}

@media screen and (max-width: 1080px) { 
  .index .boxes img {
    height: 100%;
  }
}



@media screen and (max-width: 750px) { 
  #outline {
    width: calc(100% - 64px);
  }
}

@media screen and (max-width: 672px) {
  .index .boxes {
    border: none;
  }
  .index .boxes .left, .index .boxes .right {
    float: none;
    height: auto;
    width: 100%;
    padding-top: 0;
    border: 0;
  }
  .index .boxes .right {
    border: 2px solid gray;
  }
  .index .boxes h2 {
    margin-top: 0;
  }
  .mobile-line {
    display: block;
    width: 100%;
    margin: 24px 0;
    border-bottom: 1px solid gray;
  }
}

@media screen and (max-width: 410px) { 
  #intro h1 {
    line-height: 54px;
    font-size: 38px;
  }
}

/**** Services Page ****/

#services-table {
  overflow: auto;
  border: 2px solid gray;
}

#left-side, #right-side {
  box-sizing: border-box;
  float: left;
  width: 50%;
  text-align: left;
}

#left-side {
  border-right: 2px solid gray;
}

#services-table table {
  width: 100%;
}

#services-table table tr th,
#services-table table tr td {
  padding: 8px;
}

#services-table table tr th {
  text-align: center;
  border-bottom: 2px solid gray;
}

@media screen and (max-width: 511px) { 
  #left-side, #right-side {
    float: none;
    width: 100%;
    border-right: 0;
  }
  #right-side {
    border-top: 2px solid gray;
  }
}

/**** Groups Page ****/

.group-containers {
  margin-bottom: 32px;
  padding: 16px;
  border: 2px solid gray;
}

.group-containers:last-of-type {
  margin-bottom: 0;
}

.group-containers img {
  width: 100%;
  margin-top: 12px;
  margin-bottom: -5px;
}

/**** Staff Page ****/

#staff-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -8px;
}

#staff-grid .boxes {
  position: relative;
  width: 265px;
  height: 457px;
  overflow: auto;
  margin: 0 8px;
  margin-bottom: 16px;
  border: 2px solid gray;
}

#staff-grid .boxes:last-of-type {
  margin-bottom: 0;
}

#staff-grid .boxes .staff-name {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin: 8px 0;
  padding: 0 8px;
  font-weight: bold;
}

#staff-grid .boxes .staff-title {
  position: relative;
  height: 38px;  
  margin: 16px 0;
  padding: 0 8px;
  font-size: 14px;
}

#staff-grid .boxes .staff-title span {
  position: absolute;  
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 100%;
}

#staff-grid .boxes img {
  width: 100%;
  margin-bottom: -5px;
  border-top: 2px solid gray;
  border-bottom: 2px solid gray;  
}

#staff-grid .boxes a {
  display: inline-block;
  margin: 0 auto;
  margin-bottom: 16px;
  padding: 8px;
  border: 2px solid #B37C57;
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -ms-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;    
}

#staff-grid .boxes a:hover {
  background-color: #DDE2E3;
  box-shadow: 0 0 4px gray;
  -webkit-box-shadow: 0 0 4px gray;
  -moz-box-shadow: 0 0 4px gray;   
}

#staff-grid .boxes .learn-more {
  display: none;
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  text-align: left;  
  background-color: white;
}

#staff-grid .boxes .learn-more p {
  margin: 0;
  padding: 8px;
  font-size: 14px;
}

#staff-grid .boxes .learn-more .close-btn {
  float: right;
  width: 16px;
  height: 16px;
  line-height: 16px;
  margin: 8px;
}

#staff-grid .boxes .learn-more .close-btn strong {
  position: relative;
  left: 3px;
}

@media screen and (max-width: 420px) { 
  #staff-grid .boxes .staff-name {
    padding: 0;
    font-size: 14px;
  }
}

/**** Partners Page ****/

.partner-containers {
  margin-bottom: 32px;
  padding: 16px;
  border: 2px solid gray;
}

.partner-containers:last-of-type {
  margin-bottom: 0;
}

.partner-containers img {
  margin-bottom: -5px;
}

.partner-containers img#steven-graybar-logo,
.partner-containers img#brain-health-restoration-logo {
  max-width: 337px;
}

.partner-containers img#brain-health-restoration-logo {
  margin-bottom: 8px;
}

.partner-containers a {
  display: inline-block;
  margin: 0 auto;
  margin-top: 16px;
  padding: 8px;
  border: 2px solid #B37C57;
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -ms-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;    
}

.partner-containers a:hover {
  background-color: #DDE2E3;
  box-shadow: 0 0 4px gray;
  -webkit-box-shadow: 0 0 4px gray;
  -moz-box-shadow: 0 0 4px gray;   
}

@media screen and (max-width: 454px) { 
  .partner-containers #sasse-logo,
  .partner-containers #steven-graybar-logo {
    width: 100%;
    max-width: 337px;
  }
  .partner-containers #sweetwater-logo {
    width: 100%;
    max-width: 224px;
  }
  .partner-containers #tahoe-fracture-logo,
  .partner-containers #mint-logo {
    width: 100%;
    max-width: 318px;
  }
  .partner-containers #washoe-county-school-district-logo {
    width: 100%;
    max-width: 350px;
  }
  .partner-containers #dr-lewandowski-book,
  .partner-containers #reno-cbt-dbt-logo {
    width: 100%;
    max-width: 275px;
  }
}

/**** Paperwork Page ****/

.paperwork-containers {
  margin-bottom: 32px;
  padding: 16px;
  border: 2px solid gray;
}

#therapist-consents-container .consents {
  display: none;
}

.paperwork-containers:last-of-type {
  margin-bottom: 0;
}

.paperwork-containers a {
  display: inline-block;
  margin: 0 auto;
  margin-top: 16px;
  padding: 8px;
  border: 2px solid #B37C57;
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -ms-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;    
}

.paperwork-containers a:hover {
  background-color: #DDE2E3;
  box-shadow: 0 0 4px gray;
  -webkit-box-shadow: 0 0 4px gray;
  -moz-box-shadow: 0 0 4px gray; 
  cursor: pointer;
}

.paperwork-containers .consents p {
  display: inline-block;
  font-weight: bold;
  width: 225px;
  text-align: left;
}

.paperwork-containers #access-code-container {
  margin-top: 16px;
}

.paperwork-containers #access-code-container input {
  height: 22px;
  padding: 8px;
  font-size: 16px;
  border: 2px solid gray;
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -ms-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;     
}

.paperwork-containers #access-code-container input:hover {
  border: 2px solid #B37C57;
}

.paperwork-containers #access-code-container input:focus {
  outline: none;
  border: 2px solid #B37C57;
}

#papwerworker-containers-stress .audio-container {
  display: none;
}

.paperwork-containers .audio-container p {
  margin-bottom: 16px !important;
  font-weight: bold;
}

.paperwork-containers .audio-container .audios {
  margin-bottom: -16px;
}

.paperwork-containers .audio-container .audios audio {
  height: 42px;
}

.paperwork-containers .audio-container .audios a {
  position: relative;
  top: -16px;
}

/**** Contact Page ****/

#form-content {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

#form-content .form-containers {
  clear: both;
  width: 50%;
  min-width: 216px;
}

.form-containers p {
  margin-top: 0;
  font-weight: bold;
}

.form-containers iframe {
  height: 272px;
  width: 100%;
  border: 0;
}

@media screen and (max-width: 511px) { 
  #form-content .form-containers {
    width: 100%;
  }
  #form-content #apply-form {
    height: 263px;
  }
  #form-content #apply-form p {
    margin-top: 8px;
  }
}

/**** Admin Page ****/

#access-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -8px;
}

#access-boxes .boxes {
  display: inline-block;
  position: relative;
  float: left;
  box-sizing: border-box;
  width: 200px;
  height: 200px;
  margin: 16px 8px 0 8px;
  padding: 8px;
  border: 2px solid gray;
}

#access-boxes .boxes a {
  display: inline-block;
  margin: 0 auto;
  padding: 8px;
  border: 2px solid #B37C57;
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -ms-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;    
}

#access-boxes .boxes a:hover {
  cursor: pointer;
  background-color: #DDE2E3;
  box-shadow: 0 0 4px gray;
  -webkit-box-shadow: 0 0 4px gray;
  -moz-box-shadow: 0 0 4px gray;   
}

/******** Footer ********/

#footer .content address {
  font-style: normal;
}

#footer .content p {
  margin-top: 48px;
  margin-bottom: 0;
  padding-top: 12px;
  font-size: 12px;
  border-top: 1px solid gray;
}

#footer .content div, 
#footer .content address {
  display: inline-block;
}
